import request from '@/utils/request'

// 获取轮播图
export const getBanner = () => {
  return request('/home/banner', 'get')
}

// 首页 - 新鲜好物
export const getNew = () => {
  return request('/home/new', 'get')
}

// 首页 - 人气推荐
export const getHot = () => {
  return request('/home/hot', 'get')
}

// 获取热门品牌
export const getBrands = (params) => {
  return request('/home/brand', 'get', { limit: params })
}

// 首页 - 产品区块
export const getGoods = () => {
  return request('/home/goods', 'get')
}

// 首页 - 最新专题
export const getNewSpecial = () => {
  return request('/home/special', 'get')
}
